home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 30 (1992-10)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip / MegaDisc 30 (1992-10)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf / Programs / WeekDay / Version.h < prev    next >
Text File  |  1992-10-05  |  5KB  |  67 lines

  1. /****************************************************************************
  2. *$RevHead_Start                                                             *
  3. *                                                                           *
  4. * Project Details                                                           *
  5. * ---------------                                                           *
  6. * Project Name:    WeekDay                                                  *
  7. * Project Version: 0.8                                                      *
  8. * Copyright:       © David M. Balean 1992                                   *
  9. * Date:            Monday 17th August 1992                                  *
  10. * Start DateStamp: 13-Aug-1992 11.51.25.30                                  *
  11. * Project Manager: DMB, 44 Wyong Rd, Killarney Vale, NSW 2261               *
  12. *                                                                           *
  13. *****************************************************************************
  14. *                                                                           *
  15. * This File:       Version.h                                                *
  16. *$Author:          © David M. Balean 1992                                   *
  17. *$File Version:    0.8                                                      *
  18. *$DateStamp:       17-Aug-1992 20.34.53.27                                  *
  19. *                                                                           *
  20. *****************************************************************************
  21. * Project Summary:                                                          *
  22. * Given a date, inform the user what day of the week it was.                *
  23. * Julian calendar in operation 0 to 4/10/1582.                              *
  24. * Skipped 11 days.                                                          *
  25. * Gregorian calendar in operation from 15/18/1582.                          *
  26. *****************************************************************************
  27. * Project History                                                           *
  28. * ---------------                                                           *
  29. * Date        Time         Version Author                                   *
  30. *                                                                           *
  31. * CHANGED/CREATED for Date  Version: 0.5                                    *
  32. *                                                                           *
  33. * FILE:  date.c                                                             *
  34. * 13-Aug-1992 11.47.41.22  0.5     David M. Balean                          *
  35. * Calculate the day of the week from a given date.                          *
  36. *                    ------------------------------------                   *
  37. *                                                                           *
  38. * CHANGED/CREATED for Date  Version: 0.6                                    *
  39. *                                                                           *
  40. * FILE:  date.c                                                             *
  41. * 13-Aug-1992 13.11.26.47  0.6     David M. Balean                          *
  42. * Added check for legal date - allows from 5 AD onwards.                    *
  43. *                    ------------------------------------                   *
  44. *                                                                           *
  45. * CHANGED/CREATED for Date  Version: 0.7                                    *
  46. *                                                                           *
  47. * FILE:  date.c                                                             *
  48. * 16-Aug-1992 21.40.55.39  0.7     David M. Balean                          *
  49. * Now uses an array of sums of days in the months of the year.              *
  50. * Add a day if leap year and after February.                                *
  51. * Could use Gauss's method: (c=centuries, y=tens and units m=month d=day)   *
  52. *        A = int[2.6m - .2] + d + y + int[y/4] + int[c/4] - 2c              *
  53. * but then if month is Jan or Feb it is part of previous year.(then % 7 )   *
  54. *                    ------------------------------------                   *
  55. *                                                                           *
  56. * CHANGED/CREATED for WeekDay  Version: 0.8                                 *
  57. *                                                                           *
  58. * Re-named it "WeekDay" to avoid confusion with "C:Date"                    *
  59. *                    ------------------------------------                   *
  60. *                                                                           *
  61. *$RevHead_End                                                               *
  62. ****************************************************************************/
  63.  
  64. #define PROJECT_NAME 'W','e','e','k','D','a','y'
  65. #define PROJECT_VERSION '0','.','8'
  66. #define PROJECT_COPYRIGHT '©',' ','D','a','v','i','d',' ','M','.',' ','B','a','l','e','a','n',' ','1','9','9','2'
  67.